﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MyMap.aspx.cs" Inherits="GoogleMapAPI.MyMap" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <script src="jquery-1.4.1.min.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
    </div>
    <iframe id='iframe1' width="425" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://ditu.google.com/maps/ms?ie=UTF8&amp;hl=zh-CN&amp;msa=0&amp;msid=212800177725253189507.0004a07859593181e6f23&amp;brcurrent=3,0x37baea0ff7fa867f:0xfefc93d6918f30,0%3B5,0,0&amp;ll=37.886346,98.481446&amp;spn=8.031861,9.755859&amp;output=embed"></iframe><br /><small>在较大的地图中查看<a href="http://ditu.google.com/maps/ms?ie=UTF8&amp;hl=zh-CN&amp;msa=0&amp;msid=212800177725253189507.0004a07859593181e6f23&amp;brcurrent=3,0x37baea0ff7fa867f:0xfefc93d6918f30,0%3B5,0,0&amp;ll=37.886346,98.481446&amp;spn=8.031861,9.755859&amp;source=embed" style="color:#0000FF;text-align:left">Test</a></small>
    <%--<iframe width="500px" height="300px" scrolling="no"  src="http://www.google.com/fusiontables/embedviz?viz=MAP&q=select+col0%2C+col1%2C+col2%2C+col3+from+679974+&h=false&lat=39.88076184888243&lng=116.47979736328125&z=12&t=1&l=col2"></iframe>
    --%>
    <div class="search">
        <input  type="text" />
    </div>
 <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAAsc0UQXoo2BnAJLhtpWCJFBRtpBalue-XiU0nXijyxJOFOqsHnxRGD0o9IFUpzzG944F17kJozXrQzQ"></script>
<%--    <script
        src="jsapi.js" type="text/javascript"></script>--%>
     <script type="text/javascript">
         var myService;
         // Load the latest version of the Google Data JavaScript Client   
         google.load('gdata', '2.2', { packages: ['maps'] });

         // Call function once the client has loaded
         google.setOnLoadCallback(onLoad);

         var feedUrl = 'http://maps.google.com/maps/feeds/maps/default/public'; //   "http://maps.google.com/maps/feeds/maps/dingyuliang2010@gmail.com/public";
         function setupMyService() {
             return new google.gdata.maps.MapsService('docs-111example-01');
         }
         function onLoad() {
             myService = setupMyService();
             
             myService.getMapEntry("http://maps.google.com/maps/feeds/maps/211352538349884782320/full/000495fb2ab146cb03c30",
             function () {
                 alert(1);
             }, function (e) {
                 alert(e.cause ? e.cause.statusText : e.message);
             });
             //myService.getMapFeed(feedUrl, handleMyFeed, handleError);
         }
         function handleMyFeed(myResultsFeedRoot) { 
             alert("This feed's title is: " + myResultsFeedRoot.feed.getTitle().getText());
         }
         function handleError(e) { 
             alert("There was an error!");
             alert(e.cause ? e.cause.statusText : e.message);
         }
         function doLogin() {
             var token = google.accounts.user.login('http://maps.google.com/maps/feeds');
         }
         function checkLogin() {
             return google.accounts.user.checkLogin('http://maps.google.com/maps/feeds');
          }
    </script>
    <%--<script type="text/javascript" src="http://www.google.com/jsapi?autoload= %7B%22modules%22%3A%5B%7B%22name%22%3A%22gdata%22%2C%22version%22%3A%222.x %22%2C%5B%22callback%22%3A%22onLoad%22%2C%22packages%22%3A%5B%22maps%22%5D %5D%7D%5D%7D"></script>
   --%>
    </form>
</body>
</html>
